package com.example.service;

import com.example.dao.AccountDao;
import com.example.domain.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by crowndint on 2018/10/2.
 */
@Service
public class AccountService {

    @Autowired
    private AccountDao accountDao;

    public List<Account> findAll() {

        return accountDao.findAll();
    }

    public Account findAccountById(Integer id) {

        return accountDao.findAccountById(id);
    }
}
